package com.example.kaogong.sys.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.time.LocalDate;

/**
 * @description: 资讯传输对象
 * @author: 徐文升
 * @create: 2022-04-03 21:54
 **/

@Data
@EqualsAndHashCode
@ApiModel(value = "NoticeDto对象", description = "资讯传输对象")
public class NoticeDto {
    @NotBlank(message = "资讯标题不能为空")
    @ApiModelProperty(value = "资讯标题")
    private String title;

    @NotBlank(message = "资讯内容不能为空")
    @ApiModelProperty(value = "资讯内容")
    private String content;
}
